<%@ page session="true" contentType="text/html; charset=UTF-8" errorPage="/WEB-INF/adm/pages/jspError.jsp"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../private/admin_css/common.css"  />
<title><tiles:getAsString name="title" /></title>
<script language="javascript">
var showLeft = true;
function switchSysBar() {
	if (showLeft) {
		document.getElementById("img1").src = "../private/admin_images/main_55_1.gif";
		document.getElementById("frmTitle").style.display = "none";
		showLeft = false;
	} else {
		document.getElementById("img1").src = "../private/admin_images/main_55.gif";
		document.getElementById("frmTitle").style.display = "";
		showLeft = true;
	}
}
function showsubmenu(sid){
	var whichEl = eval("submenu" + sid);
	var imgmenu = eval("imgmenu" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
		imgmenu.background="../private/admin_images/main_47.gif";
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
		imgmenu.background="../private/admin_images/main_48.gif";
	}
	for(var i = 1 ;i <= 6 ; i++){
		if(i != sid){
			var obj = document.getElementById("submenu" + i);
			if(obj){
				obj.style.display = "none";
			}
		}
	}
}
function changeto(){
	
}
function changeback(){
	
}
function init(){
	for(var i = 1 ;i <= 6 ; i++){
		var obj = document.getElementById("submenu" + i);
		if(obj){
			obj.style.display = "none";
		}
	}
	
	var documentHeight = document.documentElement.clientHeight;
	var divTopHeight = document.getElementById("div_top").clientHeight;
	var divBottomHeight = document.getElementById("div_bottom").clientHeight;
	var divMainHeight = documentHeight - divTopHeight - divBottomHeight - 4;
	document.getElementById("main_div").style.height = divMainHeight + "px";
	document.getElementById("div_left").style.height = divMainHeight + "px";
	document.getElementById("div_left").style.width = "165px";
	document.getElementById("div_right").style.height = divMainHeight + "px";
}
</script>
</head>
<body onload="init();">
<tiles:insert attribute="body-content-top" />
<div id="main_div" class="mainbody" style="overflow:hidden">
<table width="100%"  border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
  <tr>
    <td width="171" id=frmTitle align="center" valign="top">
    <table width="171" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
      <tr>
        <td  bgcolor="#1873aa" style="width:6px;">&nbsp;</td>
        <td width="165"><tiles:insert attribute="body-content-left" /></td>
      </tr>
    </table>
   </td>
    <td width="6" valign="middle" bgcolor="1873aa" onclick="switchSysBar()">
    	<span class="navPoint" id="switchPoint" title="关闭/打开左栏"><img src="../private/admin_images/main_55.gif" name="img1" width="6" height="40" id="img1" /></span>
    </td>
    <td width="100%" align="center" valign="top" id="td_right"><div id="div_right"><tiles:insert attribute="body-content-right" /></div></td>
  </tr>
</table>
</div>
<tiles:insert attribute="body-content-bot" />
</body>
</html>